





/*
 * Copyright (c) 2013-2014, starteasy Inc. All Rights Reserved.
 * 
 * Project Name: sample
 * $Id:  2016-11-14 17:11:26 $ 
 */
package cn.starteasy.sample.domain;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import cn.starteasy.core.common.domain.CreateBaseDomain;

import java.util.*;

public class City extends CreateBaseDomain<Integer>{
    /** 名称 */
    private String name;
    /** 简称 */
    private String number;
    /** 经度 */
    private String xpoint;
    /** 纬度 */
    private String ypoint;
    /** 省份 */
    private String provinceId;

	public City(){
	}
    public void setName(String value) {
        this.name = value;
    }

    public String getName() {
        return this.name;
    }
    public void setNumber(String value) {
        this.number = value;
    }

    public String getNumber() {
        return this.number;
    }
    public void setXpoint(String value) {
        this.xpoint = value;
    }

    public String getXpoint() {
        return this.xpoint;
    }
    public void setYpoint(String value) {
        this.ypoint = value;
    }

    public String getYpoint() {
        return this.ypoint;
    }
    public void setProvinceId(String value) {
        this.provinceId = value;
    }

    public String getProvinceId() {
        return this.provinceId;
    }

	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("Id",getId())
			.append("Name",getName())
			.append("Number",getNumber())
			.append("Xpoint",getXpoint())
			.append("Ypoint",getYpoint())
			.append("ProvinceId",getProvinceId())
			.append("Status",getStatus())
			.append("Creator",getCreator())
			.append("CreateDate",getCreateDate())
			.append("LastModifier",getLastModifier())
			.append("LastModDate",getLastModDate())
			.toString();
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof City == false) return false;
		if(this == obj) return true;
		City other = (City)obj;
		return new EqualsBuilder()
			.append(getId(),other.getId())
			.isEquals();
	}
}

